<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:sec="https://www.thymeleaf.org/thymeleaf-extras-springsecurity4">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link href="/layui/css/layui.css" type="text/css" rel="stylesheet">
    <script src="/layui/layui.js"></script>
</head>
<body>

<div class="layui-container">
    <form class="layui-form" method="post">
        <div class="layui-form-item" >
            <!--<label class="layui-form-label">单选框</label>-->
            <div class="layui-input-block" th:each="auth:${auths}">
                <input type="radio" name="roleId" title="用户" th:value="${auth.roleId}" th:title="${auth.rolename}">
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="formDemo">提交</button>
            </div>
        </div>
    </form>
</div>

<style></style>
<script>
    layui.use(["form"],function(){
        var form = layui.form;
    })
</script>
</body>
</html>